# 邮件发送工具配置文件

# 发送者邮箱信息
# sender_email = "AAA@163.com"  # 替换为你的邮箱地址
# sender_password = "XXXXX"  # 替换为你的邮箱密码或授权码  180天的有效期
sender_email = "zytzcj@163.com"  # 替换为你的邮箱地址
sender_password = "BX2pV348dgynjw6s"
# 选择邮箱类型 (qq, gmail, outlook, 163 或其他)
email_type = "163"

# 收件人列表 (可添加多个收件人)
recipients = ["1287834487@qq.com", "zytzcj@126.com","limai@gsm.pku.edu.cn"]

# SMTP服务器配置
smtp_configs = {
    # "qq": {
    #     "smtp_server": "smtp.qq.com",
    #     "smtp_port": 587
    # },
    # "gmail": {
    #     "smtp_server": "smtp.gmail.com",
    #     "smtp_port": 587
    # },
    # "outlook": {
    #     "smtp_server": "smtp.office365.com",
    #     "smtp_port": 587
    # },
    "163": {
        "smtp_server": "smtp.163.com",
        "smtp_port": 465
    }
}

# 测试邮件内容配置
test_emails = {
    "text_email": {
        "subject": "地址转经纬度",
        "content": "当前还有2930条数据执行失败，需要再次尝试或者对注册地址修改优化后转换,可以查看说明文档"
    },
    "html_email": {
        "subject": "测试HTML邮件",
        "content": """
        <html>
          <body>
            <h1>这是一封HTML邮件</h1>
            <p>这是使用Python邮件工具发送的<a href="https://www.example.com">HTML格式邮件</a>。</p>
          </body>
        </html>
        """
    },
    "attachment_email": {
        "subject": "测试带附件的邮件",
        "content": "这是一封带有附件的测试邮件。",
        "attachments": ["GPS_newest_0821.7z"]  # 替换为实际的文件路径
    }
}
